package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
@RequestMapping("/user")
@RestController
public class UserController {

    @RequestMapping("/hello")
    public void hello(String name) {
        System.out.println("hello " + name);
    }

    @RequestMapping("/hi")
    public void hi() {
        System.out.println("hi world");;
    }
}
